<script>
	import Vue from 'vue'
	export default {
		globalData: {},
		onLaunch: function() {
			var that = this;
			uni.getSystemInfo({
				success: function(e) {
					// #ifndef MP 
					Vue.prototype.StatusBar = e.statusBarHeight;
					if (e.platform == 'android') {
						Vue.prototype.CustomBar = e.statusBarHeight + 50;
					} else {
						Vue.prototype.CustomBar = e.statusBarHeight + 45;
					};
					// #endif

					// #ifdef MP-WEIXIN
					Vue.prototype.StatusBar = e.statusBarHeight;
					let custom = wx.getMenuButtonBoundingClientRect();
					Vue.prototype.Custom = custom;
					Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
					// #endif		 

					// #ifdef MP-ALIPAY
					Vue.prototype.StatusBar = e.statusBarHeight;
					Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
					// #endif  
					/* plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
						//console.log(JSON.stringify(wgtinfo));
						console.log(wgtinfo.version); //应用版本号
						that.$options.globalData.appVersion = wgtinfo.version;
					}) */

				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import "colorui/main.css";
	@import "colorui/icon.css";

	/*每个页面公共css */
	page {
		min-height: 100%;
	}

	/*如果使用flex布局实现固定头部和底部end*/
	/* #ifdef MP-BAIDU */
	page {
		width: 100%;
		height: 100%;
		display: block;
	}

	swan-template {
		width: 100%;
		min-height: 100%;
		display: flex;
	}

	/* 原生组件模式下需要注意组件外部样式 */
	custom-component {
		width: 100%;
		min-height: 100%;
	}

	/* #endif */

	/* #ifdef MP-ALIPAY */
	page {
		min-height: 100vh;
	}

	/* #endif */

	.margin-tb-xxs {
		margin-top: 5rpx;
		margin-bottom: 5rpx;
	}

	.uni-textarea-placeholder {
		color: #CCCCCC;
	}

	.cu-avatar {
		background-color: transparent
	}

	.cu-card.dynamic>.cu-item>.text-content {
		padding-top: 13rpx;
	}

	/*粘性定位  滑动到顶部固定*/
	.sticky {
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		z-index: 100;
	}

	.rotate360 {
		-webkit-transform: rotate(720deg);
		transform: rotate(720deg);
		-webkit-transform: scale(1.1, 1.1);
		transform: scale(1.1, 1.1);
		-webkit-transition: all 0.5s ease;
		transition: all 0.5s ease;
	}
</style>
